package com.cuit.zuke.system.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cuit.zuke.system.entity.SysMenuEntity;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @program: zuke
 * @description: 菜单管理
 * @author: KamTang
 * @create: 2022-03-31 10:09
 **/
public interface SysMenuDao extends BaseMapper<SysMenuEntity> {
    /**
     * 根据父菜单，查询子菜单
     * @param parentId 父菜单ID
     * @return List<SysMenuEntity>
     */
    List<SysMenuEntity> queryListParentId(Long parentId);

    /**
     * 获取不包含按钮的菜单列表
     * @return List<SysMenuEntity>
     */
    List<SysMenuEntity> queryNotButtonList();
}
